var data = [{
        "src": "./detailPage.html",
        "img": "http://img6.zhongjiu.cn/resourceb2b2c/Storage/Shop/1/Products/95390/1_220.png",
        "title": "42度天佑德青稞酒小黑125ml&#215;4",
        "price": "119.00"
    },
    {
        "img": "http://img6.zhongjiu.cn/resourceb2b2c/Storage/Shop/1/Products/1319/1_220.png",
        "title": "42度天佑德青稞酒小黑125ml&#215;4",
        "price": "119.00"
    }, {
        "img": "http://img6.zhongjiu.cn/resourceb2b2c/Storage/Shop/1/Products/112463/1_220.png",
        "title": "42度天佑德青稞酒小黑125ml&#215;4",
        "price": "119.00"
    }, {
        "img": "http://img6.zhongjiu.cn/resourceb2b2c/Storage/Shop/1/Products/331883/1_220.png",
        "title": "42度天佑德青稞酒小黑125ml&#215;4",
        "price": "119.00"
    },
    {
        "img": "http://img6.zhongjiu.cn/resourceb2b2c/Storage/Shop/1/Products/331870/1_220.png",
        "title": "42度天佑德青稞酒小黑125ml&#215;4",
        "price": "119.00"
    },
    {
        "img": "http://img6.zhongjiu.cn/resourceb2b2c/Storage/Shop/114/Products/94120/1_220.png",
        "title": "42度天佑德青稞酒小黑125ml&#215;4",
        "price": "119.00"
    },
    {
        "img": "http://img6.zhongjiu.cn/resourceb2b2c/Storage/Shop/1/Products/675/1_220.png",
        "title": "42度天佑德青稞酒小黑125ml&#215;4",
        "price": "119.00"
    }, {
        "img": "https://img6.zhongjiu.cn/resourceb2b2c/Storage/Shop/1/Products/387940/1_220.png",
        "title": "42度天佑德青稞酒小黑125ml&#215;4",
        "price": "119.00"
    }, {
        "img": "http://img6.zhongjiu.cn/resourceb2b2c/Storage/Shop/588/Products/205986/1_220.png",
        "title": "42度天佑德青稞酒小黑125ml&#215;4",
        "price": "119.00"
    },
    {
        "img": "http://img6.zhongjiu.cn/resourceb2b2c/Storage/Shop/588/Products/322055/1_220.png",
        "title": "42度天佑德青稞酒小黑125ml&#215;4",
        "price": "119.00"
    },
];

var hotrecommed = document.querySelector(".hotrecommed ul")
hotrecommed.innerHTML = data.map(item => ` <li>
<a href="${item.src}" target="_blank">
    <img src="${item.img}" alt="">
</a>
<h3 title="">${item.title}</h3>
<p>￥<span>${item.price}</span></p>
</li>
`).join("");